package com.hand.liut.controller;

import com.hand.liut.entity.CommonResult;
import com.hand.liut.entity.Payment;
import com.hand.liut.service.FeignPaymentService;
import javax.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author: lxx
 * @Description: TODO
 * @DateTime: 2022/7/20 10:51
 **/
@RestController
public class FeignPaymentController {

  @Resource
  private FeignPaymentService feignPaymentService;

  @GetMapping("/find/{id}")
  public CommonResult<Payment> findById(@PathVariable("id") Long id) {

    return feignPaymentService.findById(id);
  }
}
